<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">
  
  <head>
    
    <%@ include file="/WEB-INF/include/meta.jsp"%>
    <%@ include file="/WEB-INF/include/css.jsp"%>
    
  </head>
  <!-- end header -->
  <body>
    <div class="page-group">
        <div class="page page-current">
           
      <header class="bar bar-nav fs-header-small">
        <a href="${ctx.host}" class="icon icon-left pull-left"></a>
        <h1 class="title">个人中心</h1>
        <a href="javascript:;" class="fs-menu pull-right" data-panel='#panel-right-menu'><i class="icon icon-menu"></i></a>
      </header>
      <!-- end header -->

      <div class="content">
        <div class="profile-banner">
          <div class="list-block media-list prosonal-info" style="margin: .5rem 0;">
            <ul>
              <li>
                <a href="${ctx.host}/profile/info" class="item-link item-content">
                <div class="item-media">
                  <img src="${user.profile.avatar}" style="width: 3rem; border-radius: 3rem;">
                </div>
                <div class="item-inner">
                  <div class="item-title-row">
                    <div class="item-title">${user.profile.nickname}</div>
                  </div>
                  <div class="item-subtitle">${user.mobileBinded ? user.mobile : '请绑定手机号'}</div>
                </div>
                </a>
              </li>
            </ul>
          </div>
          <div class="list-block" style="margin: 0.5rem 0;">
            <div class="row info-tags">
              <div class="col-33">
                <a href="${ctx.host}/profile/inbody">
                  <span><img src="${ctx.resource}/image/info-data.png"></span>
                  <span>身体数据</span>
                </a>
              </div>
              <div class="col-33">
                <!-- <a  href="${ctx.host}/profile/courses">
                  <span><img src="${ctx.resource}/image/info-course.png"></span>
                  <span>我的课程</span>
                </a> -->
              </div>
              <div class="col-33">
                <!-- <a href="${ctx.host}/credit-mall">
                  <span><img src="${ctx.resource}/image/info-integral.png"></span>
                  <span>积分商城</span>
                </a> -->
                <a  href="${ctx.host}/profile/courses">
                  <span><img src="${ctx.resource}/image/info-course.png"></span>
                  <span>我的课程</span>
                </a>
              </div>
            </div> 
          </div>
          <div class="list-block info-list-item" style="margin: 0.5rem 0;">
            <ul>
              <c:if test="${user.student}">
                <li>
                  <a href="${ctx.host}/profile/number-card" class="item-content item-link">
                    <div class="item-inner">
                      <div class="item-title">会员卡</div>
                    </div>
                  </a>
                </li>
              </c:if>
              <li>
                <a href="${ctx.host}/orders" class="item-content item-link">
                  <div class="item-inner">
                    <div class="item-title">我的订单</div>
                  </div>
                </a>
              </li>
              <%-- <li>
                <a href="${ctx.host}/profile/coupons" class="item-content item-link">
                  <div class="item-inner">
                    <div class="item-title"> 我的优惠券</div>
                  </div>
                </a>
              </li> --%>
              <%-- <li>
                <a href="${ctx.host}/investigations" class="item-content item-link">
                  <div class="item-inner">
                    <div class="item-title">问卷调查</div>
                  </div>
                </a>
              </li> --%>
            </ul>

          </div>
          
          
          <%-- <div class="list-block info-list-item" style="margin: 0.5rem 0;">
            <ul>
              <c:if test="${not empty agent}">
                <li>
                  <a href="${ctx.host}/profile-online-agent" class="item-content item-link">
                    <div class="item-inner">
                      <div class="item-title">线上代言人</div>
                    </div>
                  </a>
                </li>
              </c:if>
              <c:if test="${student.offline}">
                 <li>
                   <a href="${ctx.host}/profile-offline-agent" class="item-content item-link">
                     <div class="item-inner">
                       <div class="item-title">线下代言人</div>
                     </div>
                   </a>
                 </li>
              </c:if>
            </ul>
          </div> --%>
          
          <!-- <div class="list-block info-list-item" style="margin: 0.5rem 0;">
            <ul>
              <li>
                <a href="" class="item-content item-link">
                  <div class="item-inner">
                    <div class="item-title">我的积分</div>
                  </div>
                </a>
              </li>
              <li>
                <a href="" class="item-content item-link">
                  <div class="item-inner">
                    <div class="item-title">体测</div>
                  </div>
                </a>
              </li>
            </ul>

          </div> -->
        </div>
      </div>

    </div>
  <!--end current page  -->
  
  </div>
   <!-- end page-group -->
   
   <!-- panel-overlay -->
    <div class="panel-overlay"></div>
    <div class="panel panel-right panel-cover fs-panel" id='panel-right-menu'>
        <!-- list block -->
        <div class="list-block fs-list-group">
            <p class="panel-title"><a href="${ctx.host}/profile">个人中心</a></p>
            <ul>
              <li class="item-content item-link">
                <a href="${ctx.host}/index">
                    <div class="item-inner">
                      <div class="item-title">人马商城</div>
                    </div>
                </a>
              </li>
              <li class="item-content item-link"> 
                <a href="http://www.fit-start.co/msite/news">
                    <div class="item-inner">
                        <div class="item-title">活动新闻</div>
                    </div>
                </a>
              </li>
              <li class="item-content item-link"> 
                <a href="http://www.fit-start.co/msite/articles">
                    <div class="item-inner">
                        <div class="item-title">知识贴</div>
                    </div>
                </a>
              </li>
              <li class="item-content item-link"> 
                <a href="http://www.fit-start.co/msite/courses">
                    <div class="item-inner">
                        <div class="item-title">经典课程</div>
                    </div>
                </a>
              </li>
              <li class="item-content item-link"> 
                <a href="http://www.fit-start.co/msite/corporations">
                    <div class="item-inner">
                        <div class="item-title">企业课程</div>
                    </div>
                </a>
              </li>
              <li class="item-content item-link"> 
                <a href="http://www.fit-start.co/msite/about-us">
                    <div class="item-inner">
                        <div class="item-title">关于我们</div>
                    </div>
                </a>
              </li>
              <!-- <li class="item-content item-link"> 
                <a href="http://weixin.fit-start.co/credit-mall">
                    <div class="item-inner">
                        <div class="item-title">积分商城</div>
                    </div>
                </a>
              </li> -->
            </ul>
        </div>
    </div>

  <%@ include file="/WEB-INF/include/script.jsp"%>
  <d:resource type="script" root="${ctx.resource}/build" src="js/page/profile/index.js" />
    <script type="text/javascript">
      var jsConfig = JSON.parse('${wechatJsConfig}')
      require(['page/profile/index'], function(page) {
        page.init({
          jsConfig: jsConfig
        })
      })
    </script>
  </body>
</html>
